class AnonymousUser(AnonymousUserMixin):
    def can(self):
        return False


login_manager.anonymous_user = AnonymousUser